<?php
/**
 * ===============================================
 * 版权所有 2019-2050 青岛铁锤科技有限公司，并保留所有权利。
 * 网站地址: http://www.huaxianling.com
 * ===============================================
 * Author: Alex
 * Created Time: 2019/6/22 18:26
 * Modified Time: 2019/6/22 18:26
 * Version: 2.0
 */

namespace App\Modules\Partner\Http\Repositories;
use App\Models\OrderItem;
use Flower\Core\Repository\Eloquent\BaseRepository;
class OrderItemRepository extends BaseRepository
{

    /**
     * Specify Model class name
     *
     * @return string
     */
    public function model()
    {
        return OrderItem::class;
    }


    public function add(){
        $orderItem = new OrderItem();
        $orderItem->order_id2 = 1;
        $orderItem->service_id = 1;
        $orderItem->save();
    }
}